#pragma once

#include <vector>

using namespace std;

class Instruction;

class Routine {
public:
	
	~Routine();
	
	void addInstruction(Instruction* instruction);
	Instruction* getInstruction(int index) { return m_instructions[index]; }
	int nrOfInstructions() { return m_instructions.size(); }
	
private:
	
	typedef vector<Instruction*> Instructions;
	Instructions m_instructions;
	
};